Clicking on a system in the Star Citizen WebGL Starmap segfaults in LLVM backend
https://bugs.freedesktop.org/show_bug.cgi?id=92913
Bug ID: 92913
Summary: [radeonsi/LLVM] Clicking on a system in the Star
Citizen WebGL Starmap segfaults in LLVM backend
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
URL: https://robertsspaceindustries.com/starmap
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Created attachment 119584
--> https://bugs.freedesktop.org/attachment.cgi?id=119584&action=edit
StarCitizen Starmap SIGSEGV backtrace and register dump
When opening <https://robertsspaceindustries.com/starmap> with the stack detailed below in a Firefox 42.0 (called Iceweasel for legal reasons on Debian), I get a SIGSEGV. The crash seems to happen in TargetLowering of radeonsi's LLVM backend:
Quoted 20 lines
#0
0x00007f66fcacd85cin () at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#10x00007f66fcad251dinllvm::TargetLowering::LowerCallTo(llvm::TargetLowering::CallLoweringInfo&)const () at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#20x00007f66fcad74ccinllvm::SelectionDAGBuilder::lowerInvokable(llvm::TargetLowering::CallLoweringInfo&, llvm::BasicBlock const*)() at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#30x00007f66fcae9410inllvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite, llvm::SDValue, bool, llvm::BasicBlock const*)() at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#40x00007f66fcafc389inllvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&)() at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#50x00007f66fcafdd54inllvm::SelectionDAGBuilder::visit(llvm::Instruction const&)() at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#60x00007f66fcb093b8in llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) () at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1#70x00007f66fcb0c6f0inllvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)() at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#80x00007f66fcb0de4cinllvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)() at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#90x00007f66fc1741b2inllvm::FPPassManager::runOnFunction(llvm::Function&)() at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#100x00007f66fc1744ebinllvm::FPPassManager::runOnModule(llvm::Module&)() at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#110x00007f66fc173e2finllvm::legacy::PassManagerImpl::run(llvm::Module&)() at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#120x00007f66fc87ed77in () at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#130x00007f66fc87f099in LLVMTargetMachineEmitToMemoryBuffer () at/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#140x00007f66ff020cbbinradeon_llvm_compile(M=M@entry=0x7f66e5467800, binary=binary@entry=0x7f66dbd5b830, gpu_family=<optimized out>, dump_ir=dump_ir@entry=false, dump_asm=dump_asm@entry=false, tm=tm@entry=0x7f671c63e000) at../../../../../../src/gallium/drivers/radeon/radeon_llvm_emit.c:184
cpu = "\210\b\345f\177\000\000@\000Yg\177\000\000H\000`Yg\177\000\000\000\260e\345f\177"
fs = "p\221\376\335\376\177\000\000\032b\023!\206U\000\000\000\000\000\000\000\000\000\000\032b\023!\206U"
err =0x0dispose_tm= false
Quoted 8 lines
llvm_ctx= <optimized out>
rval = 1out_buffer=0x8a9104b68f463d00buffer_size= <optimized out>buffer_data= <optimized out>
triple = "\000\000\000\000\000\000"mem_err= <optimized out>__func__= "radeon_llvm_compile"
See the attached backtrace for a full backtrace and register dump.
Steps to reproduce:
1. go to <https://robertsspaceindustries.com/starmap>
2. Wait for the Starmap to load and select fullscreen or windowed mode (doesn't matter for this bug).
3. Acknowledge the two dialogs.
4. Click on any system, e.g. "Oso" (do not click on the information disc thing, that works).
5. Watch the WebGL application try to load into the system (in the upper left corner you see a change of the active mode from "GLX" to "SYS").
6. SIGSEGV
Even though I don't think it is related, I bring it up: the rendering of the Starmap is partly incorrect. The first error is on the loading screen where you should see a sort of check board pattern and not these random flickering flakes. See <https://youtu.be/4eAD0liNeis> for how it should look. Apart from that the performance seems abysmal.
The WebGL application was run on the following stack (Debian testing as a base):
GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1)
Mesa: Git:master/d57ede92b7
libdrm: 2.4.65-3
LLVM: SVN:trunk/r252721 (3.8 devel)
X.Org: 2:1.17.3-2
Linux: 4.3.0
Firmware: <https://secure.freedesktop.org/~agd5f/radeon_ucode/hawaii/>
# e9099c5de16bef1f2a4c9485085dcc35 hawaii_ce.bin # 161105a73f7dfb2fca513327491c32d6 hawaii_mc.bin # 0e01c60c02de89f15cacfad4605b3688 hawaii_me.bin # e8dd41b3c2abb1d70a8349d1d4f577d5 hawaii_mec.bin # 72ea83bfa076f66241d2df9f57b5dc78 hawaii_pfp.bin # 5b72c73acf0cbd0cbb639302f65bc7dc hawaii_rlc.bin # 084389ee7523fd04003779ee4d4a4335 hawaii_sdma1.bin # 7be93381e34d1d4cf9b16740a7c69c78 hawaii_sdma.bin # 7b6ca5302b56bd35bf52804919d57e63 hawaii_smc.bin # 9f2ba7e720e2af4d7605a9a4fd903513 hawaii_uvd.bin # d8188b0ca84749c029f7012d7aea17ae hawaii_vce.bin libclc: Git:master/4346c30bae DDX: Git:master/7186a8713b
Let me know, if you need something else.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=92913
Kai <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #119584|0 |1
is obsolete| |
--- Comment #1 from Kai <[email protected]> --- Created attachment 119585
--> https://bugs.freedesktop.org/attachment.cgi?id=119585&action=edit
StarCitizen Starmap SIGSEGV backtrace and register dump
Sorry, I used the wrong backtrace file (the first without the LLVM debugging symbols installed). This is the correct one showing the crash in the LLVM backend at llvm::SDNode::getValueType
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=92913
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE--- Comment #2 from Michel Dänzer <[email protected]> ---
*** This bug has been marked as a duplicate of bug 92709 ***
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel